import request from '@/util/request'

export function selectLastOrderDetail() {
    return request({
        url: '/order/detail/last',
        method: 'get'
    })
}

export function selectAllOrderDetail(timeType, page, pageSize, logisticsState, key) {
    return request({
        url: '/order/detail/all',
        method: 'get',
        params: {
            timeType: timeType,
            page: page,
            pageSize: pageSize,
            logisticsState: logisticsState,
            key: key
        }
    })
}

export function selectOrderDetailById(id) {
    return request({
        url: '/order/detail/id',
        method: 'get',
        params: {
            id: id
        }
    })
}

export function delOrderDetail(id) {
    return request({
        url: '/order/detail/del',
        method: 'delete',
        params: {
            id: id
        }
    })
}